import java.util.Scanner;

public class StartMethod {

	public static void main(String[] args) {
		//new StartMethod().playGame();
		
		Game game = new Game(10, 10);
		game.controlPlayer = game.addPlayer('a');
		game.addPlayer('b');
		game.randomPlayer();
		
		Bot.BFS(game);
	}
	
	// if you want to play the game, you need use it on main function
	@SuppressWarnings("unused")
	private void playGame() {
		Game game = new Game(3, 3);
		Player p = game.addPlayer('a');
		game.addPlayer('b');
		game.randomPlayer();
		game.printMap();
		
		Scanner scanner = new Scanner(System.in);
		tp:while (true) {
			String input = scanner.nextLine();
			try {
				switch (input) {
				case "w":
					game.move(p, Player.MOVE_FRONT);
					break;
				case "s":
					game.move(p, Player.MOVE_BACK);
					break;
				case "a":
					game.move(p, Player.MOVE_LEFT);
					break;
				case "d":
					game.move(p, Player.MOVE_RIGHT);
					break;
				case "q":
					game.turn(p, Player.TURN_LEFT);
					break;
				case "e":
					game.turn(p, Player.TURN_RIGHT);
					break;
				case "k":
					game.attack(p);
					break;
				case "quit":
					break tp;
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
			game.printMap();
		}
		scanner.close();
	}

}





